﻿export default [
  {
    path: '/login',
    component: '../layouts/UserLayout',
    routes: [
      {
        name: 'login',
        path: '/login',
        component: './login',
      },
    ],
  },

  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        routes: [
          {
            path: '/',
            redirect: '/dashboard',
          },
          {
            path: '/dashboard',
            name: 'dashboard',
            icon: 'PieChartOutlined',
            component: './DashBoard',
          },
          {
            path: '/users',
            name: 'user',
            icon: 'PieChartOutlined',
            component: './User',
          },
          {
            path: '/goods',
            name: 'goods',
            icon: 'ShoppingOutlined',
            component: './Goods',
          },
          {
            path: '/test',
            name: 'test',
            icon: 'ShoppingOutlined',
            component: './Test',
          },
          {
            component: './404',
          },
        ],
      },
    ],
  },
  {
    component: './404',
  },
  {
    component: './404',
  },
];
